Optimal. Leaf size=113 \[ -\frac {a+b \cosh ^{-1}(c x)}{2 e \left (d+e x^2\right )}+\frac {b c \sqrt {-1+c^2 x^2} \tanh ^{-1}\left (\frac {\sqrt {c^2 d+e} x}{\sqrt {d} \sqrt {-1+c^2 x^2}}\right )}{2 \sqrt {d} e \sqrt {c^2 d+e} \sqrt {-1+c x} \sqrt {1+c x}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 113, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.210, Rules used = {5957, 533, 385,
214} \begin {gather*} \frac {b c \sqrt {c^2 x^2-1} \tanh ^{-1}\left (\frac {x \sqrt {c^2 d+e}}{\sqrt {d} \sqrt {c^2 x^2-1}}\right )}{2 \sqrt {d} e \sqrt {c x-1} \sqrt {c x+1} \sqrt {c^2 d+e}}-\frac {a+b \cosh ^{-1}(c x)}{2 e \left (d+e x^2\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 214
Rule 385
Rule 533
Rule 5957
Rubi steps
\begin {align*} \int \frac {x \left (a+b \cosh ^{-1}(c x)\right )}{\left (d+e x^2\right )^2} \, dx &=-\frac {a+b \cosh ^{-1}(c x)}{2 e \left (d+e x^2\right )}+\frac {(b c) \int \frac {1}{\sqrt {-1+c x} \sqrt {1+c x} \left (d+e x^2\right )} \, dx}{2 e}\\ &=-\frac {a+b \cosh ^{-1}(c x)}{2 e \left (d+e x^2\right )}+\frac {\left (b c \sqrt {-1+c^2 x^2}\right ) \int \frac {1}{\sqrt {-1+c^2 x^2} \left (d+e x^2\right )} \, dx}{2 e \sqrt {-1+c x} \sqrt {1+c x}}\\ &=-\frac {a+b \cosh ^{-1}(c x)}{2 e \left (d+e x^2\right )}+\frac {\left (b c \sqrt {-1+c^2 x^2}\right ) \text {Subst}\left (\int \frac {1}{d-\left (c^2 d+e\right ) x^2} \, dx,x,\frac {x}{\sqrt {-1+c^2 x^2}}\right )}{2 e \sqrt {-1+c x} \sqrt {1+c x}}\\ &=-\frac {a+b \cosh ^{-1}(c x)}{2 e \left (d+e x^2\right )}+\frac {b c \sqrt {-1+c^2 x^2} \tanh ^{-1}\left (\frac {\sqrt {c^2 d+e} x}{\sqrt {d} \sqrt {-1+c^2 x^2}}\right )}{2 \sqrt {d} e \sqrt {c^2 d+e} \sqrt {-1+c x} \sqrt {1+c x}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.21, size = 123, normalized size = 1.09 \begin {gather*} -\frac {\frac {a}{d+e x^2}+\frac {b \cosh ^{-1}(c x)}{d+e x^2}-\frac {b c \sqrt {-1+c x} \sqrt {1+c x} \text {ArcTan}\left (\frac {\sqrt {-c^2 d-e} x}{\sqrt {d} \sqrt {-1+c^2 x^2}}\right )}{\sqrt {d} \sqrt {-c^2 d-e} \sqrt {-1+c^2 x^2}}}{2 e} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(645\) vs.
\(2(96)=192\).
time = 7.67, size = 646, normalized size = 5.72
method | result | size |
derivativedivides | \(\frac {-\frac {a \,c^{4}}{2 e \left (c^{2} e \,x^{2}+c^{2} d \right )}-\frac {b \,c^{4} \mathrm {arccosh}\left (c x \right )}{2 e \left (c^{2} e \,x^{2}+c^{2} d \right )}+\frac {b \,c^{6} \sqrt {c x -1}\, \sqrt {c x +1}\, \ln \left (\frac {2 \sqrt {-\frac {c^{2} d +e}{e}}\, \sqrt {c^{2} x^{2}-1}\, e -2 \sqrt {-c^{2} d e}\, c x -2 e}{e c x +\sqrt {-c^{2} d e}}\right ) d}{4 \sqrt {c^{2} x^{2}-1}\, \left (\sqrt {-c^{2} d e}+e \right ) \left (e -\sqrt {-c^{2} d e}\right ) \sqrt {-c^{2} d e}\, \sqrt {-\frac {c^{2} d +e}{e}}}-\frac {b \,c^{6} \sqrt {c x -1}\, \sqrt {c x +1}\, \ln \left (\frac {2 \sqrt {-\frac {c^{2} d +e}{e}}\, \sqrt {c^{2} x^{2}-1}\, e +2 \sqrt {-c^{2} d e}\, c x -2 e}{e c x -\sqrt {-c^{2} d e}}\right ) d}{4 \sqrt {c^{2} x^{2}-1}\, \left (\sqrt {-c^{2} d e}+e \right ) \left (e -\sqrt {-c^{2} d e}\right ) \sqrt {-c^{2} d e}\, \sqrt {-\frac {c^{2} d +e}{e}}}+\frac {b \,c^{4} \sqrt {c x -1}\, \sqrt {c x +1}\, \ln \left (\frac {2 \sqrt {-\frac {c^{2} d +e}{e}}\, \sqrt {c^{2} x^{2}-1}\, e -2 \sqrt {-c^{2} d e}\, c x -2 e}{e c x +\sqrt {-c^{2} d e}}\right ) e}{4 \sqrt {c^{2} x^{2}-1}\, \left (\sqrt {-c^{2} d e}+e \right ) \left (e -\sqrt {-c^{2} d e}\right ) \sqrt {-c^{2} d e}\, \sqrt {-\frac {c^{2} d +e}{e}}}-\frac {b \,c^{4} \sqrt {c x -1}\, \sqrt {c x +1}\, \ln \left (\frac {2 \sqrt {-\frac {c^{2} d +e}{e}}\, \sqrt {c^{2} x^{2}-1}\, e +2 \sqrt {-c^{2} d e}\, c x -2 e}{e c x -\sqrt {-c^{2} d e}}\right ) e}{4 \sqrt {c^{2} x^{2}-1}\, \left (\sqrt {-c^{2} d e}+e \right ) \left (e -\sqrt {-c^{2} d e}\right ) \sqrt {-c^{2} d e}\, \sqrt {-\frac {c^{2} d +e}{e}}}}{c^{2}}\) | \(646\) |
default | \(\frac {-\frac {a \,c^{4}}{2 e \left (c^{2} e \,x^{2}+c^{2} d \right )}-\frac {b \,c^{4} \mathrm {arccosh}\left (c x \right )}{2 e \left (c^{2} e \,x^{2}+c^{2} d \right )}+\frac {b \,c^{6} \sqrt {c x -1}\, \sqrt {c x +1}\, \ln \left (\frac {2 \sqrt {-\frac {c^{2} d +e}{e}}\, \sqrt {c^{2} x^{2}-1}\, e -2 \sqrt {-c^{2} d e}\, c x -2 e}{e c x +\sqrt {-c^{2} d e}}\right ) d}{4 \sqrt {c^{2} x^{2}-1}\, \left (\sqrt {-c^{2} d e}+e \right ) \left (e -\sqrt {-c^{2} d e}\right ) \sqrt {-c^{2} d e}\, \sqrt {-\frac {c^{2} d +e}{e}}}-\frac {b \,c^{6} \sqrt {c x -1}\, \sqrt {c x +1}\, \ln \left (\frac {2 \sqrt {-\frac {c^{2} d +e}{e}}\, \sqrt {c^{2} x^{2}-1}\, e +2 \sqrt {-c^{2} d e}\, c x -2 e}{e c x -\sqrt {-c^{2} d e}}\right ) d}{4 \sqrt {c^{2} x^{2}-1}\, \left (\sqrt {-c^{2} d e}+e \right ) \left (e -\sqrt {-c^{2} d e}\right ) \sqrt {-c^{2} d e}\, \sqrt {-\frac {c^{2} d +e}{e}}}+\frac {b \,c^{4} \sqrt {c x -1}\, \sqrt {c x +1}\, \ln \left (\frac {2 \sqrt {-\frac {c^{2} d +e}{e}}\, \sqrt {c^{2} x^{2}-1}\, e -2 \sqrt {-c^{2} d e}\, c x -2 e}{e c x +\sqrt {-c^{2} d e}}\right ) e}{4 \sqrt {c^{2} x^{2}-1}\, \left (\sqrt {-c^{2} d e}+e \right ) \left (e -\sqrt {-c^{2} d e}\right ) \sqrt {-c^{2} d e}\, \sqrt {-\frac {c^{2} d +e}{e}}}-\frac {b \,c^{4} \sqrt {c x -1}\, \sqrt {c x +1}\, \ln \left (\frac {2 \sqrt {-\frac {c^{2} d +e}{e}}\, \sqrt {c^{2} x^{2}-1}\, e +2 \sqrt {-c^{2} d e}\, c x -2 e}{e c x -\sqrt {-c^{2} d e}}\right ) e}{4 \sqrt {c^{2} x^{2}-1}\, \left (\sqrt {-c^{2} d e}+e \right ) \left (e -\sqrt {-c^{2} d e}\right ) \sqrt {-c^{2} d e}\, \sqrt {-\frac {c^{2} d +e}{e}}}}{c^{2}}\) | \(646\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 439 vs.
\(2 (94) = 188\).
time = 0.41, size = 978, normalized size = 8.65 \begin {gather*} \left [-\frac {2 \, a c^{2} d^{2} + 2 \, a d \cosh \left (1\right ) + 2 \, a d \sinh \left (1\right ) - {\left (b c x^{2} \cosh \left (1\right ) + b c x^{2} \sinh \left (1\right ) + b c d\right )} \sqrt {c^{2} d^{2} + d \cosh \left (1\right ) + d \sinh \left (1\right )} \log \left (\frac {4 \, c^{4} d^{2} x^{2} - 2 \, c^{2} d^{2} + x^{2} \cosh \left (1\right )^{2} + x^{2} \sinh \left (1\right )^{2} + {\left (4 \, c^{2} d x^{2} - d\right )} \cosh \left (1\right ) + {\left (4 \, c^{2} d x^{2} + 2 \, x^{2} \cosh \left (1\right ) - d\right )} \sinh \left (1\right ) + 2 \, {\left (2 \, c^{3} d x^{2} + c x^{2} \cosh \left (1\right ) + c x^{2} \sinh \left (1\right ) - c d + {\left (2 \, c^{2} d x + x \cosh \left (1\right ) + x \sinh \left (1\right )\right )} \sqrt {c^{2} x^{2} - 1}\right )} \sqrt {c^{2} d^{2} + d \cosh \left (1\right ) + d \sinh \left (1\right )} + 4 \, {\left (c^{3} d^{2} x + c d x \cosh \left (1\right ) + c d x \sinh \left (1\right )\right )} \sqrt {c^{2} x^{2} - 1}}{x^{2} \cosh \left (1\right ) + x^{2} \sinh \left (1\right ) + d}\right ) - 2 \, {\left (b c^{2} d x^{2} \cosh \left (1\right ) + b x^{2} \cosh \left (1\right )^{2} + b x^{2} \sinh \left (1\right )^{2} + {\left (b c^{2} d x^{2} + 2 \, b x^{2} \cosh \left (1\right )\right )} \sinh \left (1\right )\right )} \log \left (c x + \sqrt {c^{2} x^{2} - 1}\right ) - 2 \, {\left (b c^{2} d^{2} + b x^{2} \cosh \left (1\right )^{2} + b x^{2} \sinh \left (1\right )^{2} + {\left (b c^{2} d x^{2} + b d\right )} \cosh \left (1\right ) + {\left (b c^{2} d x^{2} + 2 \, b x^{2} \cosh \left (1\right ) + b d\right )} \sinh \left (1\right )\right )} \log \left (-c x + \sqrt {c^{2} x^{2} - 1}\right )}{4 \, {\left (c^{2} d^{3} \cosh \left (1\right ) + d x^{2} \cosh \left (1\right )^{3} + d x^{2} \sinh \left (1\right )^{3} + {\left (c^{2} d^{2} x^{2} + d^{2}\right )} \cosh \left (1\right )^{2} + {\left (c^{2} d^{2} x^{2} + 3 \, d x^{2} \cosh \left (1\right ) + d^{2}\right )} \sinh \left (1\right )^{2} + {\left (c^{2} d^{3} + 3 \, d x^{2} \cosh \left (1\right )^{2} + 2 \, {\left (c^{2} d^{2} x^{2} + d^{2}\right )} \cosh \left (1\right )\right )} \sinh \left (1\right )\right )}}, -\frac {a c^{2} d^{2} + a d \cosh \left (1\right ) + a d \sinh \left (1\right ) - {\left (b c x^{2} \cosh \left (1\right ) + b c x^{2} \sinh \left (1\right ) + b c d\right )} \sqrt {-c^{2} d^{2} - d \cosh \left (1\right ) - d \sinh \left (1\right )} \arctan \left (\frac {\sqrt {-c^{2} d^{2} - d \cosh \left (1\right ) - d \sinh \left (1\right )} \sqrt {c^{2} x^{2} - 1} {\left (x \cosh \left (1\right ) + x \sinh \left (1\right )\right )} - \sqrt {-c^{2} d^{2} - d \cosh \left (1\right ) - d \sinh \left (1\right )} {\left (c x^{2} \cosh \left (1\right ) + c x^{2} \sinh \left (1\right ) + c d\right )}}{c^{2} d^{2} + d \cosh \left (1\right ) + d \sinh \left (1\right )}\right ) - {\left (b c^{2} d x^{2} \cosh \left (1\right ) + b x^{2} \cosh \left (1\right )^{2} + b x^{2} \sinh \left (1\right )^{2} + {\left (b c^{2} d x^{2} + 2 \, b x^{2} \cosh \left (1\right )\right )} \sinh \left (1\right )\right )} \log \left (c x + \sqrt {c^{2} x^{2} - 1}\right ) - {\left (b c^{2} d^{2} + b x^{2} \cosh \left (1\right )^{2} + b x^{2} \sinh \left (1\right )^{2} + {\left (b c^{2} d x^{2} + b d\right )} \cosh \left (1\right ) + {\left (b c^{2} d x^{2} + 2 \, b x^{2} \cosh \left (1\right ) + b d\right )} \sinh \left (1\right )\right )} \log \left (-c x + \sqrt {c^{2} x^{2} - 1}\right )}{2 \, {\left (c^{2} d^{3} \cosh \left (1\right ) + d x^{2} \cosh \left (1\right )^{3} + d x^{2} \sinh \left (1\right )^{3} + {\left (c^{2} d^{2} x^{2} + d^{2}\right )} \cosh \left (1\right )^{2} + {\left (c^{2} d^{2} x^{2} + 3 \, d x^{2} \cosh \left (1\right ) + d^{2}\right )} \sinh \left (1\right )^{2} + {\left (c^{2} d^{3} + 3 \, d x^{2} \cosh \left (1\right )^{2} + 2 \, {\left (c^{2} d^{2} x^{2} + d^{2}\right )} \cosh \left (1\right )\right )} \sinh \left (1\right )\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x \left (a + b \operatorname {acosh}{\left (c x \right )}\right )}{\left (d + e x^{2}\right )^{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {x\,\left (a+b\,\mathrm {acosh}\left (c\,x\right )\right )}{{\left (e\,x^2+d\right )}^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________